{% extends 'base.html' %}

{% block title %}首页{% endblock %}

{% block content %}
<div class="homepage-hero mb-5">
    <div class="container py-5">
        <div class="row align-items-center">
            <div class="col-md-6">
                <h1 class="display-4 fw-bold mb-4">智学</h1>
                <h2 class="mb-4 text-white-50">基于多智能体的个性化学习平台</h2>
                <p class="lead mb-4 text-white-50">
                    智学平台利用最先进的人工智能技术，为每位学生打造个性化的学习体验。
                    无论您是学生还是教师，我们的平台都能满足您的需求。
                </p>
                <div class="d-grid gap-2 d-md-flex justify-content-md-start mb-4">
                    {% if not session.get('user_id') %}
                    <a href="{{ url_for('login') }}" class="btn btn-light btn-lg px-4 me-md-2">
                        <i class="fas fa-sign-in-alt me-2"></i>登录
                    </a>
                    <a href="{{ url_for('register') }}" class="btn btn-outline-light btn-lg px-4">
                        <i class="fas fa-user-plus me-2"></i>注册
                    </a>
                    {% else %}
                    <a href="{{ url_for('dashboard') }}" class="btn btn-light btn-lg px-4 me-md-2">
                        <i class="fas fa-tachometer-alt me-2"></i>进入控制面板
                    </a>
                    {% endif %}
                </div>
            </div>
            <div class="col-md-6 d-none d-md-block">
                <img src="{{ url_for('static', filename='img/hero-image.svg') }}" class="img-fluid" alt="智能学习">
            </div>
        </div>
    </div>
</div>

<div class="container py-5">
    <div class="text-center mb-5">
        <h2 class="mb-3">为什么选择智学？</h2>
        <p class="lead text-muted">我们的平台融合了先进的AI技术和教育理念，提供个性化学习体验</p>
    </div>

    <div class="row g-4">
        <div class="col-md-4">
            <div class="card h-100 path-card">
                <div class="card-body text-center p-4">
                    <div class="icon-circle bg-primary text-white mb-4 mx-auto">
                        <i class="fas fa-road fa-2x"></i>
                    </div>
                    <h5 class="card-title">个性化学习路径</h5>
                    <p class="card-text text-muted">根据每位学生的兴趣和能力定制学习路线，提供最适合的学习内容。</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card h-100 path-card">
                <div class="card-body text-center p-4">
                    <div class="icon-circle bg-success text-white mb-4 mx-auto">
                        <i class="fas fa-robot fa-2x"></i>
                    </div>
                    <h5 class="card-title">智能问答系统</h5>
                    <p class="card-text text-muted">随时解答学生疑问，提供即时反馈，让学习过程更加流畅高效。</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card h-100 path-card">
                <div class="card-body text-center p-4">
                    <div class="icon-circle bg-info text-white mb-4 mx-auto">
                        <i class="fas fa-tasks fa-2x"></i>
                    </div>
                    <h5 class="card-title">针对性练习</h5>
                    <p class="card-text text-muted">根据学生掌握程度，推荐适合的练习题，让练习更有效率。</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card h-100 path-card">
                <div class="card-body text-center p-4">
                    <div class="icon-circle bg-warning text-white mb-4 mx-auto">
                        <i class="fas fa-chart-line fa-2x"></i>
                    </div>
                    <h5 class="card-title">数据分析</h5>
                    <p class="card-text text-muted">全面展示学习进度和成果，帮助学生制定更好的学习计划。</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card h-100 path-card">
                <div class="card-body text-center p-4">
                    <div class="icon-circle bg-danger text-white mb-4 mx-auto">
                        <i class="fas fa-chalkboard-teacher fa-2x"></i>
                    </div>
                    <h5 class="card-title">教师推荐</h5>
                    <p class="card-text text-muted">教师可以为学生推荐个性化学习内容，提供专业指导。</p>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card h-100 path-card">
                <div class="card-body text-center p-4">
                    <div class="icon-circle bg-secondary text-white mb-4 mx-auto">
                        <i class="fas fa-users fa-2x"></i>
                    </div>
                    <h5 class="card-title">多智能体协作</h5>
                    <p class="card-text text-muted">多个AI智能体协同工作，为学生提供全方位的学习支持。</p>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="bg-light py-5">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-md-6">
                <h2 class="mb-3">立即开始您的学习之旅</h2>
                <p class="lead mb-4">智学平台将帮助您实现学习目标，提高学习效率，让学习变得更加有趣和高效。</p>
                {% if not session.get('user_id') %}
                <a href="{{ url_for('register') }}" class="btn btn-primary btn-lg">
                    <i class="fas fa-user-plus me-2"></i>立即注册
                </a>
                {% else %}
                <a href="{{ url_for('dashboard') }}" class="btn btn-primary btn-lg">
                    <i class="fas fa-tachometer-alt me-2"></i>进入控制面板
                </a>
                {% endif %}
            </div>
            <div class="col-md-6 d-none d-md-block text-end">
                <img src="{{ url_for('static', filename='img/learning.svg') }}" class="img-fluid" alt="学习体验">
            </div>
        </div>
    </div>
</div>
{% endblock %} 